/**
 * Project Name:FriedGoldenFlower
 * File Name:UtilLog.java
 * Package Name:com.snail.util
 * Date:May 17, 20138:15:13 PM
 * Copyright (c) 2013, lilinfeng.abel@gmail.com All Rights Reserved.
 *
 */
package com.snail.util;

import android.util.Log;

import com.snail.config.ConfigEnviroment;

/**
 * ClassName: UtilLog <br/>
 * Function: TODO 日志工具类<br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: May 17, 2013 8:15:13 PM <br/>
 * 
 * @author lilinfeng.abel@gmail.com
 * @version
 * @since JDK 1.6
 */
public class UtilLog {

	/**
	 * 
	 * logError: error <br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logError(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.e(ConfigEnviroment.LOG_TAG, msg);
		}
	}

	/**
	 * 
	 * logVerbose:verbose<br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logVerbose(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.v(ConfigEnviroment.LOG_TAG, msg);
		}
	}

	/**
	 * 
	 * logInfo:info<br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logInfo(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.i(ConfigEnviroment.LOG_TAG, msg);
		}
	}

	/**
	 * 
	 * logWarn:warn<br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logWarn(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.w(ConfigEnviroment.LOG_TAG, msg);
		}
	}

	/**
	 * 
	 * logDebug:debug<br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logDebug(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.d(ConfigEnviroment.LOG_TAG, msg);
		}
	}

	/**
	 * 
	 * logAssert:assert<br/>
	 * 
	 * @author lilinfeng.abel@gmail.com
	 * @param msg
	 * @since JDK 1.6
	 */
	public static final void logAssert(String msg) {
		if (ConfigEnviroment.IS_DEBUG) {
			Log.v(ConfigEnviroment.LOG_TAG, msg);
		}
	}

}
